﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="KeywordsSEOList.aspx.cs"
    Inherits="KeywordsSEOList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link type="text/css" href="css/style.css" rel="stylesheet" />
    <link type="text/css" href="css/jquery-ui.css" rel="stylesheet" />
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/jquery-ui.js"></script>
    <script type="text/javascript" src="js/lib.js"></script>
    <script type="text/javascript">
        $(function () {
            BindBtn();
            AddTrClass($("#listinfo"));
            $("#txtDateTime").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd" });
        })
        function ShowDialog(id, mid, timepanel, status) {
            var url = "", title="";
            title = "关键字收录情况";
            url = "KeywordsSEO.aspx?id=" + id + "&mid=" + mid + "&date=" + timepanel + "&status=" + status;
            top.CreateIframe(title, url, 800, 300);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="conBox">
        <table class="form-table">
            <thead>
                <tr>
                    <td colspan="3">
                        查询选项
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr class="tr1">
                    <td class="oneTd">
                        <div>
                            医院名称：<asp:DropDownList ID="ddlMedical" runat="server">
                            </asp:DropDownList>
                            分类：<asp:DropDownList ID="ddlSort" runat="server">
                                  <asp:ListItem Value="0" Text="所有分类"></asp:ListItem>
                                  </asp:DropDownList>
                            关键字：<asp:TextBox ID="txtKeywords" runat="server" CssClass="txtbox"></asp:TextBox>
                            日期：<asp:TextBox ID="txtDateTime" runat="server" CssClass="txtbox" style="width: 100px"></asp:TextBox>
                            </div>
                    </td>
                </tr>
                <tr class="tr1">
                    <td class="oneTd">
                      <div>自动锁定：<asp:DropDownList ID="ddlSysLock" runat="server">
                                  <asp:ListItem Value="-1" Text="所有"></asp:ListItem>
                                  <asp:ListItem Value="1" Text="锁定"></asp:ListItem>
                                  <asp:ListItem Value="0" Text="非锁定"></asp:ListItem>
                                  </asp:DropDownList>
                            手动锁定：<asp:DropDownList ID="ddlDiyLock" runat="server">
                                  <asp:ListItem Value="-1" Text="所有"></asp:ListItem>
                                  <asp:ListItem Value="1" Text="锁定"></asp:ListItem>
                                  <asp:ListItem Value="0" Text="非锁定"></asp:ListItem>
                                  </asp:DropDownList>
                            首页总数：从<asp:TextBox ID="txtBeginIndex" runat="server" Width="40" CssClass="txtbox" Text="0"></asp:TextBox>至<asp:TextBox ID="txtEndIndex" runat="server" Width="40" CssClass="txtbox" Text="10"></asp:TextBox>
                            <asp:Button ID="btnSubmit" runat="server" Text="查询" OnClick="btnSubmit_Click" CssClass="button" />
                            <asp:Button ID="btnReset" runat="server" Text="重置" OnClick="btnReset_Click" CssClass="button" style="display:none;" /></div>  
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="grid-box">
            <table class="grid-table">
                <thead>
                    <tr>
                        <th class="align-l" style="width:30px;">
                            序号
                        </th>
                        <td class="align-l">
                            关键字
                        </td>
                        <td class="align-l">
                            排名情况
                        </td>
                        <td class="align-l">
                            首页总数
                        </td>
                         <td class="align-l" style="<%=ShowCss()%>">
                            新闻源
                        </td>
                         <td class="align-l" style="<%=ShowCss()%>">
                            外链
                        </td>
                        <td class="align-l" style="width:110px;">
                            日期
                        </td>
                        <td class="align-c" style="<%=ShowCss()%>width:60px;">
                            提成系数
                        </td>
                        <td class="align-c" style="<%=ShowCss()%>width:60px;">
                            自动锁定
                        </td>
                         <td class="align-c" style="<%=ShowCss()%>width:60px;">
                            手动锁定
                        </td>
                        <td class="align-c">
                            详情
                        </td>
                    </tr>
                </thead>
                <tbody id="listinfo">
                    <asp:Repeater ID="rptKeywords" runat="server" OnItemCommand="rptKeywords_ItemCommand">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%#nNum++%>
                                </td>
                                <td>
                                     <a href="http://www.baidu.com/s?wd=<%#Server.UrlEncode(Eval("Name").ToString())%>" target="_blank"><%#Server.HtmlEncode(Eval("Name").ToString())%></a>
                                </td>
                                <td>
                                    <%#Eval("SEOInfo")%>
                                </td>
                                 <td>
                                    <%#Eval("FirstCount")%>
                                </td>
                                <td style="<%#ShowCss()%>">
                                    <%#string.IsNullOrEmpty(Eval("NewsCount").ToString())?"0":Eval("NewsCount").ToString()%>
                                </td>
                                <td style="<%#ShowCss()%>">
                                    <%#string.IsNullOrEmpty(Eval("LinkCount").ToString())?"0":Eval("LinkCount").ToString()%>
                                </td>
                                <td>
                                    <%#SysRunBeginDateTime == string.Empty ? BeginDateTime : SysRunBeginDateTime%>
                                </td>
                                <td style="<%#ShowCss()%>">
                                    <%#Eval("Scale")%>
                                </td>
                                <td class='align-c' style="<%#ShowCss()%>">
                                    <asp:ImageButton ID="btnSysLock" CommandName="SetSysLock" CommandArgument='<%#Eval("ID")+","+Eval("SysLock")%>' ImageUrl='<%#Convert.ToBoolean(Eval("SysLock"))?"images/open.gif":"images/close.gif"%>' runat="server" />
                                </td>
                                <td class='align-c' style="<%#ShowCss()%>">
                                     <asp:ImageButton ID="btnDiyLock" CommandName="SetDiyLock" CommandArgument='<%#Eval("ID")+","+Eval("DiyLock")%>' ImageUrl='<%#Convert.ToBoolean(Eval("DiyLock"))?"images/open.gif":"images/close.gif"%>' runat="server" />
                                </td>
                                <td class='align-c'>
                                    <a href="javascript:ShowDialog(<%#Eval("ID")%>,<%#MedicalID%>,'<%#BeginDateTime%>','<%#Status %>')">
                                        <img alt="查看详情" src="images/ico_look.gif" /></a>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
            <div id="noData" runat="server">
                <div class="noDateMsg">
                    没有任何信息！</div>
            </div>
            <div id="pageinfo" class="page">
                <webdiyer:AspNetPager ID="anpPage" runat="server" OnPageChanging="anpPage_PageChanging"
                    CurrentPageButtonClass="curPage" PageSize="100" AlwaysShow="true" ShowCustomInfoSection="left" CustomInfoTextAlign="Left" LayoutType="Table">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
